<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>

    $(function () {


        function loadData(page) {
            $.ajax({
                type: 'get',
                url: 'asda',
                data: {
                    type: $('.').val(),
                    status: $('.').val(),
                    page: page,
                    perpage: 10
                },
                success: function (backData) {
                    if (backData.code == 200) {
                        if (backData.data.totalCount > 0) {

                            // 加载数据
                            let data = backData.data.data;
                            let str = template('tpl-list', data);
                            $('tbody').html(str)

                            // 设置分页导航
                            // 先摧毁分页导航
                            $('#').tews()
                            $('#').tews({
                                totalPages: backData.data.totalPage,
                                visiblePages: page
                            })



                        }
                    }
                }
            })
        }
    })


</script>